
    <div class="login_div">
        <form action='/home/passport/sublogin' method="post" id='login_form'>
            <?php if($_GET["msg"]==1){?>
            <div><font style="color:red">账号或密码错误</font></div>
            <?php }?>
            <div class='form-group'>
                <input type="text" class="form-control" name='account' placeholder="手机号" value=""/>
            </div>
            <div class='form-group'>
                <input type="password" class="form-control" name="password" placeholder="密码" value=""/>
            </div>
            <div class="row">
                <div class="col-md-4"><span class="login_span"><a href="/home/passport/forgetpassword">忘记密码?</a></span>
                </div><div class="col-md-4"></div><div class="col-md-4"><span class="login_span"><a href="/home/passport/apply">申请入驻</a></span></div></div>
            <div class="form-group login_sub">
                <input type="submit" class="btn btn-info" name="登录" value="登录">
            </div>
        </form>
    </div>
</div>
</div>
<script type='text/javascript'>
     $("#login_form").validate({
                rules: {  
                    account: {  
                        required:true ,
                        number:true,
                        mobile:true
                        
                    },  
                    password:{  
                        required:true,  
                        rangelength:[6,12] 
                    }
                },  
                messages: {  
                    account: {  
                        required:'请输入手机号' ,
                        number:'请输入手机号' ,
                        mobile:'请输入手机号' 
                    },  
                    password:{  
                         required:'请输入密码：6-12位',  
                         rangelength:'请输入密码：6-12位' 
                    }  
                }  
            });
            jQuery.validator.addMethod("mobile", function(value, element) {
            var length = value.length;
            var mobile = /^(((1[1-9]{1}[0-9]{1})|(15[0-9]{1}))+\d{8})$/
            return this.optional(element) || (length == 11 && mobile.test(value));
            }, "手机号码格式错误");
</script>